<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>

        function f(){
            // localStorage.setItem("abc","123");
            sessionStorage.setItem("abc","123");
        }

    </script>
</head>
<body>
    <a href="javascript:;" onclick="f();">test</a>
    <a href="js05.html">js05.html</a>
</body>
</html>